package com.hsxc.cdz.base.util;

public class Constants {

	// 启动符
	public static final String START_UP = "6868";
	/*
	 * 桩主动发送，服务端回复的帧类型
	 */
	// 桩上传心跳
	public static final String CLIENT_SEND_HEART = "51";
	// 服务端回复心跳
	public static final String SERVER_RESPONSE_HEART = "52";
	// 桩上传遥变
	public static final String CLIENT_SEND_CHANGE = "53";
	// 桩上传账单
	public static final String CLIENT_SEND_BILL = "54";
	// 服务端回复账单
	public static final String SERVER_RESPONSE_BILL = "55";
	// 桩主动上传开始充电
	public static final String CLIENT_SEND_START = "11";
	// 服务端回复桩开始充电请求
	public static final String SERVER_RESPONSE_START = "56";
	// 桩主动上传停止充电请求
	public static final String CLIENT_SEND_STOP = "13";
	// 服务端回复桩停止充电请求
	public static final String SERVER_RESPONSE_STOP = "57";
	// 桩 主动上传停止预约请求
	public static final String CLIENT_SEND_STOP_ORDER = "17";
	// 服务端回桩挺住预约请求
	public static final String SERVER_RESPONSE_STOP_ORDER = "58";
	// 桩上传刷卡信息
	public static final String CLIENT_SEND_CARD = "75";
	// 服务端回复刷卡请求
	public static final String SERVER_RESPONSE_CARD = "76";
	// 桩请求注册或登录
	public static final String CLIENT_SEND_REGISTER = "A1";
	// 服务端回复注册或登录请求
	public static final String SERVER_RESPONSE_REGISTER = "A2";
	// 桩请求登录退出
	public static final String CLIENT_SEND_UNLOAD = "A3";
	// 服务端回复登录退出请求
	public static final String SERVER_RESPONSE_UNLOAD = "A4";
	// 直流桩主动上传充电数据
	public static final String Upload_CHARGE_DATA_ZHILIU = "5C";
	// 服务端下发查询二维码请求
	public static final String SERVER_SEND_QRCQUERY = "79";
	// 客户端回复二维码查询
	public static final String CLIENT_RESPONSE_QRCQUERY = "80";
	// 服务端下发停止充电桩服务
	public static final String SERVER_SEND_STOPSERVICE = "81";
	// 客户端响应暂停电桩服务
	public static final String CLIENT_RESPONSE_STOPSERVICE = "82";

	/*
	 * 判断是否注册的帧类型
	 */
	// 未注册
	public static final String NO_REGISTER = "00";
	// 已注册
	public static final String DID_REGISTER = "01";

	/*
	 * 响应码
	 */
	public static final String RESPONSE_NOMAL = "000000";
	public static final String RESPONSE_ERROR_RENAME = "FF0101";
	public static final String RESPONSE_ERROR_ACCOUNT = "FF0001";
	public static final String RESPONSE_ERROR_PASSWORD = "FF0002";
	public static final String RESPONSE_ERROR_COMMAND = "FF0201";
	/*
	 * 服务器主动发起，充电桩响应 帧类型
	 */
	// 服务器下发开启指令
	// 桩开启指令同桩充电主动上送
	public static final String SERVER_SEND_START = "10";
	// 服务器下发停止指令
	// 桩停止指令同桩停止充电主动上送
	public static final String SERVER_SEND_STOP = "12";
	// 服务器下发预约指令
	public static final String SERVER_SEND_ORDER = "14";
	// 桩预约指令返回
	public static final String CLIENT_RESPONSE_ORDER = "15";
	// 服务器下发停止预约指令
	// 桩主动停止预约返回通桩主动停止预约上送
	public static final String SERVER_SEND_STOP_ORDER = "16";
	// 服务器下发重启指令
	public static final String SERVER_SEND_RESTART = "18";
	// 桩重启指令返回
	public static final String CLIENT_RESPONSE_RESTART = "19";
	// 服务器下发查询硬件服务器ip
	public static final String SERVER_SEND_QUERYIP = "30";
	// 桩查询ip返回
	public static final String CLIENT_RESPONSE_QUERYIP = "31";
	// 服务器下发设置ip
	public static final String SERVER_SEND_FITIP = "32";
	// 桩设置ip返回
	public static final String CLIENT_RESPONSE_FITIP = "33";
	// 服务器下发对时指令
	public static final String SERVER_SEND_CHECKTIME = "34";
	// 桩对时指令返回
	public static final String CLIENT_RESPONSE_CHECKTIME = "35";
	// 服务器下发费率查询指令
	public static final String SERVER_SEND_QUERYRATE = "36";
	// 桩费率查询返回
	public static final String CLIENT_RESPONSE_QUERYRATE = "37";
	// 服务器下发费率设置指令
	public static final String SERVER_SEND_FITRATE = "38";
	// 桩费率设置返回
	public static final String CLIENT_RESPONSE_FITRATE = "39";
	// 心跳报文完全同上桩心跳主动上送

	// 服务器下发状态查询
	public static final String SERVER_SEND_STATE = "71";
	// 桩上传遥测数据
	public static final String CLIENT_RESPONSE_STATE_TELEMETRY = "72";
	// 桩上传遥信数据
	public static final String CLIENT_RESPONSE_STATE_SIGN = "73";
	// 桩上传遥脉数据
	public static final String CLIENT_RESPONSE_STATE_PULSE = "74";
	// 服务器下发设置二维码
	public static final String SERVER_SEND_QRC = "77";
	// 桩回复二维码命令
	public static final String CLIENT_RESPONSE_QRC = "78";

	// 第三方用户唯一凭证
	public static String appid = "";
	// 第三方用户唯一凭证密钥
	public static String appsecret = "";
	// 商户ID
	public static String mch_id = "";
	// 获取openId
	public static String oauth_url = "https://api.weixin.qq.com/sns/oauth/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
	// 用户状态锁定
	public static final String USER_LOCK = "01";
	public static final String USER_UNLCK = "00";
	// 短信验证参数
	public static final String MSERVER_URL = "https://api.netease.im/sms/sendcode.action";// 请求的URL
	public static final String VERIFY_URL="https://api.netease.im/sms/verifycode.action";//验证码验证
	public static final String MAPP_KEY = "512d0486ba9e0d49bdd433b854d50f8d";//
	public static final String MAPP_SECRET = "50f7ebacbbf8";//
	public static final String MNONCE = "4tgggergigwow323t23t";
	public static final String SENDTAMPLATE_URL = "https://api.netease.im/sms/sendtemplate.action";
	public static final String SENDTAMPLATE_APP_KEY = "73a763a5e43f3e017324908e9361fa23";
	public static final String SENDTAMPLATE_APP_SECRET = "05a09984c342";
	public static final int TEMPLATE_ID_INFO_RESERV = 3032492;//预约提醒模板id
	public static final int TEMPLATE_ID_CANCELL_RESERV = 3031264;//取消预约模板id
	public static final int TEMPLATE_ID_SUCCESS_RESERV = 3034184;//成功预约模板id


}
